﻿using Domain.Types;
using Infrastructure.AggregateBase;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Domain.Model
{
    [Table("BlackList")]
    public class BlackListAggregate : AggregateRoot<BlackListAggregate, int>
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public override int ID { get; set; }

        public int UserID { get; set; }
        [StringLength(50)]
        public string Phone { get; set; }
        /// <summary>
        /// 恢复时间 为空时永不恢复
        /// </summary>
        public DateTime? RestoreTime { get; set; }
        /// <summary>
        /// 禁止用的权限
        /// </summary>
        public BlackListPermissions BlackListPermissions { get; set; }
        public string Reson { get; set; }
        public int AdminID { get; set; }
    }
}
